From 4c942429888a768eb0aff01ba424c78e4c99ea2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 18 Feb 2017 11:10:16 +0100 Subject: [PATCH] expander: Use gtk_widget_measure --- gtk/gtkexpander.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 45286a19ca..b786d6f471 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -934,7 +934,8 @@ gtk_expander_resize_toplevel (GtkExpander *expander) { GtkRequisition child_requisition; - gtk_widget_get_preferred_height_for_width (child, child_allocation.width, &child_requisition.height, NULL); + gtk_widget_measure (child, GTK_ORIENTATION_VERTICAL, child_allocation.width, + &child_requisition.height, NULL, NULL, NULL); toplevel_allocation.height += child_requisition.height; } -- 2.30.2